package com.future.rabbitmq;

import lombok.Data;

/**
 * @author czy
 * @describe
 * @date 2018/9/19
 */
@Data
public class MessageDto<T> {

    /**
     * 消息类型
     */
    private Integer type;
    /**
     * 接受者
     */
    private T receiver;
    /**
     * 消息内容
     */
    private Object data;

    public MessageDto() {
    }

    public MessageDto(Integer type, T receiver, Object data) {
        this.type = type;
        this.receiver = receiver;
        this.data = data;
    }
}
